<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>111</title>
    <style>
        body {
            background: #f2f4f7 !important;
            display: flex;
            /*给body加一个弹性布局 控制子元素位置*/
            justify-content: center;
            /*子元素左右居中*/
            align-items: center;
            /*子元素上下居中*/
        }

        body .login {
            /*正常情况下页面中间矩形*/
            width: 900px;
            height: 584px;
            background: #fff;
        }

        @media(max-width :768px) {

            /*手机端 login宽高100%*/
            body .login {
                width: 100vw;
                height: 100vh;
            }
        }
        /*继承父元素login的宽高*/
        .container{
            width: 100%;
            height: 100%;
            /*怪异盒子模型*/
            box-sizing: border-box;
            /*上下左右都向内挤占50px*/
            padding: 100px;
        }
       
    </style>
</head>

<body>
    <div class="login shadow rounded">
        <div class="container">
            <!--使用珊格系统进行左右布局-->
            <!--1 电脑端 左侧2/3 右侧1/3-->
            <!--2 移动端左侧100%显示 右侧不显示-->
            <!-- bootstrap栅格系统行（有12列） 类row让子元素同一行显示-->
            <div class="row">
                <!--col-6优先级太高 导致col-xs-12没生效(手机屏100%宽没生效)-->
                <!--改为col-md-8 电脑端一行左侧占8/12 右侧col-md-4占4/12-->
                <!--当手机端时 col-md系列样式失败 col-xxxs-12生效 第一个div宽12/12-->
                <div class="col-md-5 offset-md-1 col-xs-12">
                    <h3 class="mb-3">用户登录</h3>
                    <div class="input-group  mb-3">
                        <span class="input-group-text" id="basic-addon1">
                            <i class="bi bi-person-circle"></i>
                        </span>
                        <input type="text" class="form-control"
                        placeholder="用户名/手机号" 
                        aria-label="用户名/手机号" 
                        aria-describedby="basic-addon1"/>
                    </div>
                    <div class="input-group mb-3">
                        <span class="input-group-text" id="basic-addon1">
                            <i class="bi bi-lock-fill"></i>
                        </span>
                        <input type="password"
                         class="form-control"
                        placeholder="密码" 
                        aria-label="密码" 
                        aria-describedby="pwd"/>
                        <span class="input-group-text">忘记密码</span>
                </div>
                <div class="input-group md-3 d-grid gap-2">
                    <button id="login" class="btn rounded-pill btn-primary" type="button">登录</button>
                </div>
                <!--使用栅格布局 将div占一行-->
                <div class="input-group mb-3">
                    <div class="col-6">
                        <a href="#">新用户注册</a>
                    </div>
                    <div class="col-6">
                        <a href="#">手机验证码登录</a>
                    </div>
                </div>
                <!--其他方式登录-->
                <div class="input-group mb-3">
                    <div class="col-12 text-muted text-center">
                        其他方式登录
                    </div>
                </div>
                <div class="input-group  text-center mb-3 row">
                    <div class=" col-12 text-center">登录即表示同意平台<a>《隐私政策》</a>和<a >《用户协议》</a></div>
                </div>
                </div>
                <div class="col-md-4 offset-md-1">
                    <div class="row">
                        <img src="./c2b4c1f972ed95d1f7255a68bf2dbe0f634409601814080602.jpg" width="250px" height="250px" class="rounded mx-auto d-block" alt="登录二维码">
                    </div>
                    <div class="row mt-2">
                        <div class="col-12 text-center text-muted">
                            使用不学也同扫码
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="module" src="./js/main.js"></script>
    <script src="./js/jquery.min.js"></script>
    <script>
        $(document).ready(function(){
            $("#login").click(function(){
                location.href="./teacher/index.html"
            })
        })
    </script>
</body>

</html>